home *** CD-ROM | disk | FTP | other *** search
- Path: news.cs.hope.edu!vnopstal
- From: vnopstal@cs.hope.edu (Michael Van Opstall)
- Newsgroups: comp.lang.c++
- Subject: Re: Operator Overloading
- Date: 6 Jan 1996 19:54:37 GMT
- Organization: Hope College
- Distribution: world
- Message-ID: <4cmk1t$kd7@news.cs.hope.edu>
- References: <4chdhb$g64@news.cs.hope.edu> <ENNO.96Jan5211810@kitz.inferenzsysteme.informatik.th-darmstadt.de>
- NNTP-Posting-Host: smaug.cs.hope.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Let me follow up on my own thread here.
-
- OK, != doesn't have to be overloaded, but +=, -=, *=, /= do, and they would
- have to be member functions, like =. I have a better understanding of streams
- now, so overloading << is not a problem, but how about >>. Overloading it
- would be a void function, right? or do I have to do a return *this or something
- like with =? Do I have to return the istream itself?
-
- --
- Michael A. Van Opstall -- vnopstal@cs.hope.edu
- http://www.cs.hope.edu/~vnopstal/deal.html - try it
-